/**
 * 2017年8月23日
 */
package exp.entity;

/**
 * @author Alex
 *
 */
public class ChartDTO {
	private String name;
	private	Point value[];
	private double type;
	
	public double getType() {
		return type;
	}
	public void setType(double type) {
		this.type = type;
	}
	/**
	 * 忽略最后一个值,也就是忽略类标
	 * @param name
	 * @param x
	 * @param type
	 */
	public ChartDTO(String name,double[] x,double type){
		this.name = name;
		value = new Point[x.length-1];
		for(int i=0;i<x.length-1;i++){
			value[i] = new Point(i,x[i]);
		}
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Point[] getValue() {
		return value;
	}
	public void setValue(Point[]value) {
		this.value = value;
	}

	
	
}
